package com.zxw.hotel.service.impl;

import com.zxw.hotel.dao.ChartsDao;
import com.zxw.hotel.model.Charts;
import com.zxw.hotel.service.ChartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChartsServiceImpl implements ChartsService {
    private ChartsDao chartsDao;
    @Autowired
    public void setChartsDao(ChartsDao chartsDao) {
        this.chartsDao = chartsDao;
    }
    @Override
    public List<Charts> getCharts() {
        return chartsDao.getCharts();
    }
}
